package TDAPila;

public class Node<E> {
	
	private E element;
	private Node<E> next;
	
	public Node (E e, Node<E> n){
		element=e;
		next=n;
	}
	
	public Node (E e){
		element=e;
		next=null;
	}
	
	public E element (){ return element;}
	public Node<E> getNext() {return next;}
	public void setElement(E e){element=e;}
	public void setNext (Node<E> n){next=n;}
	

}
